#
#  Be sure to run `pod spec lint BLAPIManagers.podspec' to ensure this is a
#  valid spec and to remove all comments including this before submitting the spec.
#
#  To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
#  To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |s|

  s.name         = "WB_SDWebImage"
  s.version      = "6"
  s.swift_version = '5.1'
  s.summary      = "WB_SDWebImage."
  s.description  = <<-DESC
                    this is WB_SDWebImage 5.7.2
                   DESC

  s.homepage     = "https://gitee.com/wenmobo/WB_SDWebImage"
  s.license      = { :type => "MIT", :file => "FILE_LICENSE" }

  s.author             = { "CasaTaloyum" => "casatwy@msn.com" }
  
  s.osx.deployment_target = '10.10'
  s.ios.deployment_target = '8.0'
  s.tvos.deployment_target = '9.0'
  s.watchos.deployment_target = '2.0'

  s.source       = { :git => "https://gitee.com/wenmobo/WB_SDWebImage.git", :tag => s.version.to_s }
  s.requires_arc = true
  s.default_subspec = 'Core'

  # SDWebImage_5.7.2
  s.framework = 'ImageIO'
  s.pod_target_xcconfig = {
      'SUPPORTS_MACCATALYST' => 'YES',
      'DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER' => 'NO'
    }

  # Core
  s.subspec 'Core' do |core|
    core.source_files = 'WB_SDWebImage/WB_SDWebImage/Core/*.{h,m}', 'WB_SDWebImage/WB_SDWebImage/SDWebImage.h', 'WB_SDWebImage/WB_SDWebImage/Private/*.{h,m}'
    core.exclude_files = 'WB_SDWebImage/WB_SDWebImage/MapKit/*.{h,m}'
    core.private_header_files = 'WB_SDWebImage/WB_SDWebImage/Private/*.h'
  end

  # MapKit
  s.subspec 'MapKit' do |mk|
    mk.osx.deployment_target = '10.10'
    mk.ios.deployment_target = '8.0'
    mk.tvos.deployment_target = '9.2'
    mk.source_files = 'WB_SDWebImage/WB_SDWebImage/MapKit/*.{h,m}'
    mk.framework = 'MapKit'
    mk.dependency 'WB_SDWebImage/Core'
  end

end
